*
* The @filter_func will be called for each row after the call, and it will
* continue to be called each time a row changes (via gtk_list_box_row_changed()) or
- * when gtk_list_box_refilter() is called.
+ * when gtk_list_box_invalidate_filter() is called.
*
* Since: 3.10
*/
priv->filter_func_target = user_data;
priv->filter_func_target_destroy_notify = destroy;
- gtk_list_box_refilter (list_box);
+ gtk_list_box_invalidate_filter (list_box);
}
/**
* continue to be called each time a row changes (via gtk_list_box_row_changed()) and when
* the row before changes (either by gtk_list_box_row_changed() on the previous row, or when
* the previous row becomes a different row). It is also called for all rows when
- * gtk_list_box_reseparate() is called.
+ * gtk_list_box_invalidate_headers() is called.
*
* Since: 3.10
*/
priv->update_header_func = update_header;
priv->update_header_func_target = user_data;
priv->update_header_func_target_destroy_notify = destroy;
- gtk_list_box_reseparate (list_box);
+ gtk_list_box_invalidate_headers (list_box);
}
/**
- * gtk_list_box_refilter:
+ * gtk_list_box_invalidate_filter:
* @list_box: a #GtkListBox
*
* Update the filtering for all rows. Call this when result
* Since: 3.10
*/
void
-gtk_list_box_refilter (GtkListBox *list_box)
+gtk_list_box_invalidate_filter (GtkListBox *list_box)
{
g_return_if_fail (list_box != NULL);
gtk_list_box_apply_filter_all (list_box);
- gtk_list_box_reseparate (list_box);
+ gtk_list_box_invalidate_headers (list_box);
gtk_widget_queue_resize (GTK_WIDGET (list_box));
}
}
/**
- * gtk_list_box_resort:
+ * gtk_list_box_invalidate_sort:
* @list_box: a #GtkListBox
*
* Update the sorting for all rows. Call this when result
* Since: 3.10
*/
void
-gtk_list_box_resort (GtkListBox *list_box)
+gtk_list_box_invalidate_sort (GtkListBox *list_box)
{
GtkListBoxPrivate *priv = list_box->priv;
g_sequence_sort (priv->children,
(GCompareDataFunc)do_sort, list_box);
- gtk_list_box_reseparate (list_box);
+ gtk_list_box_invalidate_headers (list_box);
gtk_widget_queue_resize (GTK_WIDGET (list_box));
}
/**
- * gtk_list_box_reseparate:
+ * gtk_list_box_invalidate_headers:
* @list_box: a #GtkListBox
*
* Update the separators for all rows. Call this when result
* Since: 3.10
*/
void
-gtk_list_box_reseparate (GtkListBox *list_box)
+gtk_list_box_invalidate_headers (GtkListBox *list_box)
{
g_return_if_fail (list_box != NULL);
*
* The @sort_func will be called for each row after the call, and will continue to
* be called each time a row changes (via gtk_list_box_row_changed()) and when
- * gtk_list_box_resort() is called.
+ * gtk_list_box_invalidate_sort() is called.
*
* Since: 3.10
*/
priv->sort_func = sort_func;
priv->sort_func_target = user_data;
priv->sort_func_target_destroy_notify = destroy;
- gtk_list_box_resort (list_box);
+ gtk_list_box_invalidate_sort (list_box);
}
static void
* This generally means that if you don't fully control the data
* model you have to duplicate the data that affects the listbox
* row functions into the row widgets themselves. Another alternative
- * is to call gtk_list_box_resort() on any model change, but that is
+ * is to call gtk_list_box_invalidate_sort() on any model change, but that is
* more expensive.
*
* Since: 3.10